<?php
/**
 * OrderGoods
 * Created by Veyron
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/2/7
 * Time: 15:55
 */

namespace app\common\model\mysql;

class OrderGoods extends BaseModel
{
    public function getByOrderId($orderId){
        $condition = [
            'order_id'  => $orderId,
        ];

        try {
            $orders = $this->getByCondition($condition);
        }catch (\Exception $e){
            $orders = [];
        }
        $orders = $orders->toArray();
        return $orders;
    }
}

